package com.star.starp.entity.network;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author alex
 * @date 2022/1/2 17:04
 * @description:TODO
 */
@Data
@TableName("t_sms_log")
@NoArgsConstructor
public class SmsLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 类型 1.注册验证码 2登录验证码 3密码找回验证码
     */
    private int type;
    private String phone;
    private String info;
    private Date ctime;

    public SmsLog(int type, String phone, String info) {
        this.type = type;
        this.phone = phone;
        this.info = info;
        this.ctime=new Date();
    }
}
